<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单绑定</title>
    <script src="../vue.global.js"></script>
    <style>
        .red{
            color:red;
        }
        .font-big{
            font-size: 50px;
        }
    </style>
</head>
<body>

<div id="App">
    {{counter}}

    <input type="text" placeholder="输入点东西" v-model="msg">

    <div>{{msg}}</div>

    <input type="checkbox" id="checkbox" v-model="check"/>
    <label for="checkbox">{{check}}</label>

    <br/>

    <input type="checkbox" id="a" value="china" v-model="checkCountry"/>
    <label for="a">china</label>

    <input type="checkbox" id="b" value="japanese" v-model="checkCountry"/>
    <label for="b">japanese</label>

    <input type="checkbox" id="c" value="american" v-model="checkCountry"/>
    <label for="c">american</label>

    <div>{{checkCountry}}</div>

    <br/>

    <input type="radio" id="one" value="male" v-model="gender">
    <label for="one">male</label>

    <input type="radio" id="two" value="female" v-model="gender">
    <label for="two">female</label>
    <div>{{gender}}</div>

    <br/>

    <select v-model="selected">
        <option>北京</option>
        <option>南京</option>
        <option>长沙</option>
        <option>成都</option>
    </select>
    <div>{{selected}}</div>
</div>


<script>



    const App = {

        data(){
            return {
                counter:100,
                msg:"hello",
                check:true,
                checkCountry:[],
                gender:'',
                selected:''
            }
        },
        methods:{

        },
        computed:{

        }
    };

    const vm = Vue.createApp(App).mount("#App")


</script>
</body>
</html>